package com.terminee.utils;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

public final class PMF {
	private static PersistenceManagerFactory pmf = null;

    private PMF() {}

    public static synchronized PersistenceManagerFactory getPersistenceManagerFactory() {
        if(pmf == null)
            pmf = JDOHelper.getPersistenceManagerFactory("transactions-optional");

        return pmf;
    }
}
